<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理员管理-有点</title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>/public/admin/css/css.css" />
<script type="text/javascript" src="<?php echo base_url()?>/public/admin/js/jquery.min.js"></script>
<!-- <script type="text/javascript" src="js/page.js" ></script> -->
	<style>
		.paging{text-align: center;width:100%;
			margin-top: 15px!important;}
		.clear{
			display: block;
			clear:both;
		}
		.paging a, .paging strong{
			display: inline-block;
			width:auto;
			padding: 0 10px;
			margin:0px 5px;
			height:32px;
			text-align: center;
			line-height:32px;
			border: 1px solid #47a4e1;
			color: #47a4e1;
			transition:all 0.2s;

		}

		.paging a:hover, .paging strong{
			color:#fff;
			background:#47a4e1;
			transition:all .2s;


	</style>

</head>
<body>
	<div id="pageAll" >
		<div class="pageTop">
			<div class="page">
				<img src="img/coin02.png" /><span>
					<a href="#">首页</a>&nbsp;-&nbsp;-</span>&nbsp;分类
			</div>
		</div>

		<div class="page">
			<!-- user页面样式 -->
			<div class="connoisseur">
				<div class="conform">
					<form>
						<div class="cfD">
							<button class="userbtn">
								<a href="<?php echo site_url()?>/admin/type/add">添加</a></button>
						</div>
					</form>
				</div>
				<!-- user 表格 显示 -->
				<div class="conShow">
					<table border="1" cellspacing="0" cellpadding="0">
						<tr>
							<td width="66px" class="tdColor tdC">序号</td>
							<td width="535px" class="tdColor">房屋类型</td>
							<td width="530px" class="tdColor">操作</td>
						</tr>
						<?php foreach($type as $v):?>
						<tr height="40px">
							<td><?= $v['type_id']?></td>
							<td><?= $v['type_name']?></td>
							<td>
							<a href="<?php echo site_url()?>/admin/type/update?id=<?php echo $v['type_id']?>">
							<img class="operation" src="<?php echo base_url()?>/public/admin/img/update.png"></a>
							<a href="<?php echo site_url()?>/admin/type/del?id=<?php echo $v['type_id']?>">
							<img class="operation delban" src="<?php echo base_url()?>/public/admin/img/delete.png"></a>
							</td>
						</tr>
					<?php endforeach?>
					</table>
					<div class="paging" style="margin: 0 auto;">
						<?=$link?>
					</div>
				</div>
				<!-- user 表格 显示 end-->
			</div>
			<!-- user页面样式end -->
		</div>

	</div>


	<!-- 删除弹出框 -->
	<div class="banDel">
		<div class="delete">
			<div class="close">
				<a><img src="img/shanchu.png" /></a>
			</div>
			<p class="delP1">你确定要删除此条记录吗？</p>
			<p class="delP2">
				<a href="#" class="ok yes">确定</a><a class="ok no">取消</a>
			</p>
		</div>
	</div>
	<!-- 删除弹出框  end-->
</body>

<script type="text/javascript">
// 广告弹出框
$(".delban").click(function(){
  $(".banDel").show();
});
$(".close").click(function(){
  $(".banDel").hide();
});
$(".no").click(function(){
  $(".banDel").hide();
});
// 广告弹出框 end
</script>
</html>